package com.clock.domain.dto;


import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.util.Date;

@Api(tags = "评论信息")
@ApiModel
@EqualsAndHashCode(callSuper = false)
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
@Data
public class CommentDTO {

    @ApiModelProperty(value = "用户id", required = true, notes = "发出该评论的用户id")
    private Long userId;

    @ApiModelProperty(value = "0-用户;1-帖子;2-评论", required = true)
    private Integer entityType;

    @ApiModelProperty(value = "实体id", required = true, notes = "评论实体的主键id")
    private Long entityId;

    @ApiModelProperty(value = "评论目标用户id", required = true)
    private Long targetId;

    @ApiModelProperty(value = "评论内容", required = true)
    private String content;

    @ApiModelProperty(value = "0-正常;1-精华;2-拉黑", notes = "默认值为0，无特殊情况不需要传")
    private Integer status;

    @ApiModelProperty(value = "评论创建时间", notes = "不需要传")
    private Date createTime;
}
